package ${pPackage}.common.controller;

import ${pPackage}.common.entity.Result;
import ${pPackage}.common.entity.ResultCode;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ErrorController {

  //公共错误跳转BaseController
  @GetMapping("/api/autherror")
  public Result autherror(int code) {
    return code == 1 ? new Result(ResultCode.E_100117) : new Result(ResultCode.E_110010);
  }

}
